<style lang="less">
</style>
<template>
  <span>
          <div v-if="modalLsVisible">
              <HistoricDetail ref="historicDetail" :data-id="dataId"></HistoricDetail>
          </div>
  </span>
</template>

<script>
import HistoricDetail from './HistoricDetail';
export default {
    name: 'ActHistoricDetailBtn',
    components: { HistoricDetail },
    props: {
        btnType: { type: String, default: 'link', required: false },
        /**/
        // dataId: {
        //     type: String,
        //     default: '',
        //     required: true
        // },
        text: {
            type: String,
            default: '审批历史',
            required: false
        }
    },
    data() {
        return {
            dataId:null,
            modalLsVisible: false
        };
    },
    created() {
      this.dataId=this.$route.query.taskId;
      console.log()
      this.history()
    },
    watch: {
    },
    methods: {
        history() {
            if (!this.dataId) {
                this.$message.error('流程实例ID不存在');
                return;
            }
            this.modalLsVisible = true;
        }
    }

};
</script>
